package com.xhwl.data.service;

import com.alibaba.fastjson.JSONObject;
import com.xhwl.common.dto.cent.sdata.space.*;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.sdata.Account;
import com.xhwl.common.pojo.cent.sdata.OrganizationType;

import java.util.List;

/**
 * @Author: luyi
 * @Description:
 * @Date: Create in 14:29 2021/10/12
 */
public interface ISpaceExcelImportService {

	ResultJson<List<ErrorSpace>> batchImportRoom(List<RoomExcelDTO> excelDTOS, Account account, Integer projectId);

	ResultJson<List<ErrorSpace>> batchImportFloor(List<FloorExcelDTO> excelDTOS, Account account, Integer projectId);

	ResultJson<List<ErrorSpace>> batchImportBuilding(List<BuildingExcelDTO> excelDTOS, Account account, Integer projectId);

	ResultJson<List<ErrorSpace>> batchImportArea(List<AreaExcelDTO> excelDTOS, Account account, Integer projectId);

	ResultJson<List<ErrorSpace>> batchImportPublicArea(List<PublicAreaExcelDTO> excelDTOS, Account account, Integer projectId);

	/**
	 * 自定义空间导入
	 * @param spaces
	 * @param account
	 * @return
	 */
	ResultJson<List<ErrorSpace>> batchImportSpace(List<JSONObject> spaces, OrganizationType organizationType, Account account, Integer projectId);

	ResultJson<List<ErrorSpace>> batchImportUnit(List<UnitExcelDTO> unitExcelDTOS, Account account, Integer projectId);

	ResultJson<List<ErrorSpace>> batchImportBalcony(List<BalconyExcelDTO> balconyExcelDTOS, Account account, Integer projectId);

	ResultJson<List<ErrorSpace>> batchImportBlock(List<BlockExcelDTO> blockExcelDTOS, Account account, Integer projectId);
}
